package com.xingzuo.library_expert.ui;

import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

import com.xingzuo.base.ui.mvp.base.ui.BaseActivity;
import com.xingzuo.library_expert.R;
import com.xingzuo.library_expert.R2;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ExamResultActivity extends BaseActivity {
    @BindView(R2.id.tv_content)
    TextView tvContent;
    String content="soulmate占星认证组将在5日内通知您认证结/考试未通过，您可在24小时后重考";
    @Override
    public int getView() {
        return R.layout.activity_examresult;
    }

    @Override
    public void initView() {
        SpannableStringBuilder spannableString = new SpannableStringBuilder(content);
        spannableString.setSpan(null, 36, 42, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        spannableString.setSpan(null, 43, 49, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
        //设置点击事件，加上这句话才有效果
        tvContent.setMovementMethod(LinkMovementMethod.getInstance());
        //设置点击后的颜色为透明（有默认背景）
        tvContent.setText(spannableString);
    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

}